package com.fang.task;

import org.quartz.DisallowConcurrentExecution;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.scheduling.quartz.QuartzJobBean;
import org.springframework.stereotype.Component;


@DisallowConcurrentExecution
@Component("DspTestTask")
public class DspTestTask implements Job{

    public void test() {
        System.out.println("test..666");
    }

    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {
        System.out.println("test..55");
    }
}
